import {observable,action} from 'mobx';

//import {message} from 'antd'

export default class UserStore {
    history = null;
    @observable userList = [];
    constructor() {
        //this.history = history;
        this.addUser = this.addUser.bind(this);
        this.getUserList = this.getUserList.bind(this);
    }
    @action
    addUser(params) {
        this.userList.push({name:"dyf"});
    }
    getUserList(params) {
        return this.userList.slice();
    }
}